/**
* @Author: changDongdong
* @Date: 2023年4月26日18:53:46
* @Description: 项目中表格table 底部分页
* @param { current total handlePages }  页面,总页数,事件
*/
import "./index.less";
import React from 'react'
import { Pagination, ConfigProvider } from 'antd'

function Paginations(props: any) {
	const { total, handlePages, current } = props

	const changePage = (current, size) => {
		handlePages(current, size)
	}

	return (
		<div className="pagination-wrap">
			<ConfigProvider >
				<Pagination showSizeChanger showQuickJumper current={current} total={total} onChange={(current, size) => { changePage(current, size) }} />
			</ConfigProvider>
		</div>
	)
}

Paginations.defaultProps = {
	current: 1
}

export default Paginations;
